<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<f:view xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:af="http://myfaces.apache.org/trinidad"
	xmlns:afh="http://myfaces.apache.org/trinidad/html"
	xmlns:c="http://java.sun.com/jstl/core">

    <f:loadBundle basename="ProcessPortalMessages" var="localeBundle" />
    <f:loadBundle basename="CommonMessages" var="commonMsg" />
    <af:document title="#{localBundle.processHistory}">
        <af:form>
            <af:navigationPane hint="bar" styleClass="attachmentDetailsNavBar">
                <af:commandNavigationItem text="#{commonMsg.close}"
                    actionListener="#{activityInstanceDialog.closeAttachmentDetailsDialog}" />
            </af:navigationPane>
            <af:spacer height="10"/>
            
           	<af:outputText value="Doc-ID: #{activityInstanceDialog.selectedAttachment}" />
            
        </af:form>
        
        <c:choose>
            <c:when test="#{customAttachmentPreview}">
                <ui:include src="???" />
            </c:when>
            <c:otherwise>
                <af:group rendered="#{not empty activityInstanceDialog.selectedAttachmentDownloadUrl}">
                    <iframe src="#{activityInstanceDialog.selectedAttachmentDownloadUrl}"
                        frameborder="1" marginheight="0" marginwidth="0" scrolling="auto"
                        align="middle" width="100%" height="85%">
                    </iframe>
                </af:group>
            </c:otherwise>
        </c:choose>
    </af:document>
</f:view>
